// 导入 express 模块
const express = require("express");

// 创建应用对象
const app = express();

app.use(express.static(__dirname + "/public"));
console.log(__dirname);
console.log(__dirname + "/public");
// 监听端口，启动服务
app.listen(8000, () => {
  console.log("服务已经启动……静态资源中间件");
});
